<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>
        {{info}}
        <ul>
            <li v-for="name in arr">{{name}}</li>
        </ul>
        <table border="1">
            <caption>任务列表</caption>
            <tr>
                <th>编号</th>
                <th>名字</th>
                <th>年龄</th>
                <th>性别</th>
            </tr>
            <tr v-for="(p,i) in persons">
                <td>{{i+1}}</td>
                <td>{{p.name}}</td>
                <td>{{p.age}}</td>
                <td>{{p.gander}}</td>
            </tr>
        </table>
    </div>
    <script src="../js./vue.min.js"></script>
    <script>
        new Vue({
            el:"body>div",
            data:{
                info:"循环遍历",
                arr:["陈亮明","池晓滔","王冉婷"],
                persons:[
                    {name:"王冉婷",age:18,gander:"女"},
                    {name:"池晓滔",age:18,gander:"男"},
                    {name:"陈亮明",age:25,gander:"男"}
                ]
            }
        })
    </script>

</body>
</html>